package com.jinyi.wwdeng.utils.dialog

import android.content.Context
import android.view.Gravity
import android.view.WindowManager
import com.jinyi.base.utils.dialog.BaseDialog
import com.jinyi.wwdeng.App

abstract class ProDialog(context: Context?): BaseDialog(context) {

    override fun initWindow() {
        val params = window!!.attributes
        params.width = App.getPhoneWidth() - App.dp2px(60f)
        params.height = WindowManager.LayoutParams.WRAP_CONTENT
        window!!.attributes = params
        window!!.setWindowAnimations(com.jinyi.pickerview.R.style.picker_view_scale_anim) //修改动画样式
        window!!.setGravity(Gravity.CENTER)
    }
}